import Vue from 'vue'
import Vuex from 'vuex'
import state from "./state"
import mutations from "./mutations"
import actions from "./actions"
import getters from "./getters"
//加载vuex全局状态管理
Vue.use(Vuex);

export default new Vuex.Store({
  //状态
  state,
  //负荷 所有方法默认注入第一个参数state
  mutations,
  //方法
  actions,
  //模块
  modules: {},
  //取值
  getters
})